<template>

 <div>
    <slot name="txt">
      <input type="text" placeholder="姓" :value="fastName" @input = "$emit('update:fastName', $event.target.value)">
      <input type="text" placeholder="名" :value="lastName" @input="$emit('update:lastName', $event.target.value)">
      <input type="text" placeholder="年龄" :value="modelValue" @input="$emit('update:age', $event.target.value)">
    </slot>
  </div>

</template>

<script>
export default {
    props: {
    //v-model
    fastName: String,
    lastName: String,
    modelValue: Number
    }
}
</script>